<template>
  <a-card :bordered="false">
    <v-table
      bordered
      ref="table"
      :data="loadData"
      :columns="tableColumns"
    >
      <span slot="name" slot-scope="{row,text}">
        <a @click="showData(row)">{{ text }}</a>
      </span>
      <span slot="action" slot-scope="text,row">
        <span>
          <a href="javascript:;" @click="edit(row)">编辑</a>
          <a-divider type="vertical" />
        </span>
      </span>
    </v-table>
  </a-card>

</template>

<script>
import { fetchListByUser } from '@/api/message/sendLog'
import { TableMixin } from '@/mixins/TableMixin'
import { tableColumns, queryObj } from './notice'
export default {
  name: 'NoticeInfoList',
  mixins: [TableMixin],
  data () {
    return {
      tableColumns,
      queryObj,
      loadData: parameter => {
        return fetchListByUser(
          Object.assign(parameter, this.queryParam)
        ).then(res => {
          return res.data
        })
      }
    }
  }
}
</script>

<style scoped>

</style>
